import React, { Component } from 'react';
import './index.less';
import { Spin } from 'antd';
class Loading extends Component {
    constructor(props) {
        super(props);
        this.state = {
          
        }
    }
    render() {
        let {visible}=this.props
        return visible ? (
            <div className='loadingBg'>
                <Spin tip="Loading...">
                </Spin>
            </div>
        ) : null
    }

}
export default Loading;